package com.itlong.cloud.equip.smartcard;


import com.itlong.cloud.POJO.DTO.smartcard.SmartCardFaceSyncDataGetPageDTO;
import com.itlong.cloud.POJO.VO.smartcard.SmartCardFaceSyncDataPageVO;
import com.itlong.cloud.utils.page.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
* <desc>
*    C#人脸识别全量同步数据暴露接口.
* </desc>
*
* @createDate 2019-03-18
*/
@FeignClient(name="equip-service")
public interface ISmartCardFaceServiceClient {

    /**
     * <desc>
     *      C#人脸识别获取全量数据
     * </desc>
     *
     * @param syncDataGetPageDTO    数据传输对象
     * @return
     * @author Juguang.S
     * @createDate 2019/03/18
     */
    @PostMapping("smartCard/facePullCloudInfo/pullFull")
    Page<SmartCardFaceSyncDataPageVO> pullFull(@RequestBody SmartCardFaceSyncDataGetPageDTO syncDataGetPageDTO) throws Exception;

    /**
     * <desc>
     *      获取项目有批号设备的过期时间集合。
     * <desc/>
     *
     * @param projectId 项目编号
     * @return
     * @author Juguang.S
     * @createDate 2019-11-25
     */
    @RequestMapping(path = "/smartCard/getDeviceCloudServiceCostEndTime",method = RequestMethod.POST)
    List<Map<String, String>> getDeviceCloudServiceCostEndTime(@RequestParam("projectId") String projectId);


}
